<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系统管理</title>
<link href="/webadmin/Css.css" rel="stylesheet" type="text/css">
</head>

<body >
当前位置：添加下级栏目&nbsp;>&nbsp;添加栏目
<script charset="utf-8" src="./js/jquery.min.js"></script>
<form id="form1" name="form1" method="post" action="?MenuID=13">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <input name="SysMenu0" type="hidden"  value="13" size="30" />
  <div style="width:700px; margin:0 auto">
    <fieldset style="border:#999 solid 1px; border-radius:4px">
      <legend>栏目属性</legend>
      <table width="95%" border="0" align="center">
        <tr>
          <td width="120"><div align="right">栏目名称：</div></td>
          <td><label>
              <input name="SysMenu1" id="SysMenu1"  value="品牌介绍" type="text" size="30" />
            </label></td>
        </tr>
        <tr>
          <td><div align="right">栏目功能：</div></td>
          <td><label>
              <select name="SysMenu4" class="menudrops" id="SysMenu4">
                <option value=""  selected>请选择...</option>
                <option value="System/SetSys/index.php|系统设置|setsys">系统设置</option>
                <option value="System/OnePageSys/index.php|单页系统|onepagesys">单页系统</option>
                <option value="System/ClassSys/index.php|分类系统|classsys">分类系统</option>
                <option value="System/RuleSys/index.php|权限系统|rulesys">权限系统</option>
                <option value="System/AdminSys/index.php|用户管理|sysadmin">用户管理</option>
                <option value="System/sen_product/index.php|产品系统|sen_product">产品系统</option>
                <option value="System/sen_news/index.php|新闻系统|sen_news">新闻系统</option>
                <option value="System/sen_message/index.php|留言系统|sen_message">留言系统</option>
                <option value="System/sen_links/index.php|友情链接|sen_links">友情链接</option>
              </select>
              <script type="text/javascript">document.getElementById("SysMenu4").value="System/OnePageSys/index.php|单页系统|onepagesys"</script> 
            </label>
            <a href="selftable.php" style="color:#F00" title="如果没有合适的功能可以自定义">自定义系统管理>></a></td>
        </tr>
        <tr>
          <td><div align="right">复制样式：</div></td>
          <td><select name="ListMenuSys">
              <option value="" selected="selected">请选择...</option>
            </select></td>
        </tr>
        <tr>
          <td><div align="right">排序：</div></td>
          <td><label>
              <input name="SysMenu3" id="SysMenu3" type="text" value="1" size="10" />
              *请输入数字 </label></td>
        </tr>
      </table>
    </fieldset>
    <fieldset id="staticsettings1" style="border:#999 solid 1px; display:none; margin-top:10px; border-radius:4px">
      <legend>单页静态设置</legend>
      <table width="95%" border="0" align="center">
        <tr>
          <td width="120"><div align='right'>单页模板：</div></td>
          <td><input name='SysMenu13' id='SysMenu13' value='' type='text' size='30' />
            如:about.html</td>
        </tr>
      </table>
    </fieldset>
    <fieldset id="staticsettings2" style="border:#999 solid 1px; display:none; margin-top:10px; border-radius:4px">
      <legend>频道静态设置</legend>
      <table width="95%" border="0" align="center">
        <tr>
      <td width="120"><div align='right'>按分类生成：</div></td>
      <td><select id='htmlclass' name='htmlclass'>
          <option value='0'>请选择</option>
          <option value='37'>推荐设置</option>
          <option value='33'>项目分类</option>
          <option value='31'>专家分类</option>
          <option value='29'>设备分类</option>
          <option value='27'>讲堂分类</option>
          <option value='21'>新闻分类</option>
        </select>
        <script type="text/javascript">document.getElementById('htmlclass').value=0;</script></td>
    </tr>
    <tr>
      <td><div align='right'>列表页静态规则：</div></td>
      <td><input name='SysMenu14' id='SysMenu14' value='' type='text' size='30' />
        如:/news/list{$cid}_{$page}.html</td>
    </tr>
    <tr>
      <td><div align='right'>列表页模板：</div></td>
      <td><input name='SysMenu15' id='SysMenu15' value='' type='text' size='30' />
        如:newslist.html</td>
    </tr>
    <tr>
      <td><div align='right'>内容页静态规则：</div></td>
      <td><input name='SysMenu16' id='SysMenu16' value='' type='text' size='30' />
        如:/news/views{$id}.html</td>
    </tr>
    <tr>
      <td><div align='right'>内容页模板：</div></td>
      <td><input name='SysMenu17' id='SysMenu17' value='' type='text' size='30' />
        如:newsdetail.html</td>
    </tr>
      </table>
    </fieldset>
    <table width="95%" border="0" style="margin-top:10px" align="center">
    <tr>
      <td width="120">&nbsp;</td>
      <td><label>
          <input type="submit" name="Submit" onclick="return yzadd()" style="background-image:url(../../iamges/botton_baocun.png); width:69px; border:0px; height:24px; background-repeat:no-repeat;" value=" " />
          <input type="button" name="Submit2" style="background-image:url(../../iamges/botton_quxiao.png); width:69px; border:0px; height:24px; background-repeat:no-repeat;" value=" " onClick="window.history.back();"/>
        </label></td>
    </tr>
      </table>
  </div>
</form>

<script type="text/javascript">
$(function(){
	$('#SysMenu4').change(function(){
		var text = $(this).find("option:selected").text();
		var nostaticstring = '系统设置|分类系统|权限系统|用户管理|友情链接|留言系统';
		if(text=='单页系统'){
			$('#staticsettings1').show();
		}else if(text=='请选择...' || nostaticstring.indexOf(text)>=0){
			$('#staticsettings1,#staticsettings2').hide();
		}else{
			$('#staticsettings2').show();
		}
	});
});

$('#form1').submit(function(){
	if($("#SysMenu1").val().length < 1){
		alert("栏目名称,不能为空！！");
		$("#SysMenu1").focus();
		return false;
	}
	if($("#SysMenu4").val()==""){
		alert("请选择功能！！");
		$("#SysMenu4").focus();
		return false;
	}
	if($("#SysMenu3").val().length < 1){
		alert("排序,不能为空！！");
		$("#SysMenu3").focus();
		return false;
	}
});
</script>
</body>
</html>